{extend name="../common/admin_model"}
{block name="title"}商户订单{/block}
{block name="main"}
<div id="center">
    <select style="float: left;height: 30px" onchange="location.href=this.options[this.selectedIndex].value;">
        <option>选择类型</option>
        <option value ="/admin/mt_order?flag=all">全部</option>
        <option value ="/admin/mt_order?flag=pay">已支付</option>
        <option value="/admin/mt_order?flag=not">未支付</option>
    </select>
    <form style="float: left">
        <input class="a-upload" name="order_num" placeholder="按照订单号搜索">
        <input class="a-upload" style="height: 30px" type="submit" value="搜索">
    </form>
    {eq name="order" value="[]"}
    <div style="position: absolute;left: 50%;top: 150%;transform: translate(-50%,-50%)">
        <h1 style="color: gray">抱歉，这里什么都没有！</h1>
    </div>
    {else/}
    <table width="1350px">
        <tr>
            <th style="background: #5eb4b1;color: white">订单编号</th>
            <th style="background: #5eb4b1;color: white">创建时间</th>
            <th style="background: #5eb4b1;color: white">支付状态</th>
            <th style="background: #5eb4b1;color: white">支付时间</th>
            <th style="background: #5eb4b1;color: white">订单金额</th>
            <th style="background: #5eb4b1;color: white">会员ID</th>
            <th style="background: #5eb4b1;color: white">商户名称</th>
        </tr>
        {foreach $order as $o}
        <tr>
            <th>{$o['order_num']}</th>
            <th>{$o['create_time']}</th>
            {eq name=":$o['pay_status']" value="0"}
            <th>未支付</th>
            <th>--/--/--</th>
            {else/}
            <th>已支付</th>
            <th>{$o['pay_time']}</th>
            {/eq}
            <th>{$o['order_price']}</th>
            <th>{$o['order_mb_id']}</th>
            <th>{$o['order_mt']}</th>
        </tr>
        <tr>
            <th><hr></th>
            <th><hr></th>
            <th><hr></th>
            <th><hr></th>
            <th><hr></th>
            <th><hr></th>
            <th><hr></th>
        </tr>
        {/foreach}
    </table>
    {/eq}
    <form action="/admin/mt_order" method="post">
        <input style="height: 30px" class="a-upload" name="low" type="submit" value="上一页">
        <input style="width: 10px" class="a-upload" name="num" type="text" readonly value="{$num}">
        <input style="height: 30px" class="a-upload" name="up" type="submit" value="下一页">
    </form>
</div>
<style>
    #center{
        background: #f7f7f7;
        position: relative;
        left: 35px;
        top: 30px;
        height: 150px;
        width: 1350px;
    }
    #center th{
        width: 14%;
    }
    .a-upload {
        padding: 4px 10px;
        height: 20px;
        line-height: 20px;
        position: relative;
        cursor: pointer;
        color: #888;
        background: #fafafa;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
        display: inline-block;
        *display: inline;
        *zoom: 1
    }
    .a-upload  input {
        position: absolute;
        font-size: 100px;
        text-align: center;
        right: 0;
        top: 0;
        opacity: 0;
        filter: alpha(opacity=0);
        cursor: pointer
    }
    .a-upload:hover {
        color: #444;
        background: #eee;
        border-color: #ccc;
        text-decoration: none
    }
</style>
{/block}